package 作业;

import java.util.Scanner;

public class 打印最大值并挑选 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        double[] arr = new double[5];

        double max = arr[0];

        double sum = 0;

        int count = 0;


        System.out.println("请输入人的身高：");

        for (int i = 0; i < arr.length; i++) {


            arr[i] = sc.nextDouble();


            //if (arr[i] > max) {
            //    max = arr[i];
            //}

        }

        for (int i = 0; i < arr.length; i++) {

            if (arr[i] >= 1.70) {
                System.out.print(arr[i]);
            }
        }

        //System.out.println("这组数据中最大的" + max);
        //System.out.println("超过1.7的有" + count+"个");

    }
}
